<!DOCTYPE html>
<html>
	<head>
		<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
	</head>
	<body>
		<form action="http://localhost:8080/finishfile" method="post" enctype="multipart/form-data" >
		　　　file:<input type="file" name="file" /> <br />
			name:<input type="text" name="name" />
			description:<input type="text" name="description" />
		　　　<input type="submit" value="Upload" />
		</form> <br/>
		<form action="http://localhost:8080/uploadmuti" method="post" enctype="multipart/form-data" >
		　　　files:<input type="file" name="files" /><input type="file" name="files" /><input type="file" name="files" /><br />
			name:<input type="text" name="name" />
			description:<input type="text" name="description" />
		　　　<input type="submit" value="Upload" />
		</form> <br/>
		<form action="http://localhost:8080/babafile" method="post" enctype="multipart/form-data" >
		　　detail:<input type="text" name="detail" /> <br/>
			fdFiles:<input type="text" name="fdFiles[0].name" /> <input type="file" name="fdFiles[0].file" /><br/>
			fdFiles:<input type="text" name="fdFiles[1].name" /> <input type="file" name="fdFiles[1].file" /><br/>
			fdFiles:<input type="text" name="fdFiles[2].name" /> <input type="file" name="fdFiles[2].file" /><br/>
		　　　<input type="submit" value="Upload" />
		</form>
		<button onclick="postUrl()">postUrl()</button>
	</body>
	<script type="text/javascript">
		//postUrl()
		function postUrl() {
			var list = [
				{name:'a',description:'aa'},
				{name:'b',description:'bb'},
				{name:'c',description:'cc'}
			]
      console.log('删除前',list);
      delete list[1].name;
      console.log('删除后',list);
      let reg = /^[0-9][0-9]*(\.[0-9]{1,4})?$/
      console.log(reg.test("hh475rr"))
			$.ajax({
				url:'http://localhost:8080/babafile',
				data:{'fdFiles':list,detail:'fdsfsd'},
				type: 'post',
				success: function(data) {
					
				}
			})
		}
		let obj = {
		  value: 1,
		  [Symbol.iterator]() {
		    const self = this;
		    return {
		      next() {
		        if (self.value < 10) {
					console.log('调用遍历器里面的东西')
				  self.value++
		          return {
		            value: 'ffd:'+self.value,
		            done: false
		          };
		        } else {
		          return { value: 10, done: true };
		        }
		      }
		    };
		  }
		};
		for(var i of obj) {
			console.log(i)
		}
		function f() { console.log('I am outside!'); }
		(function(a) {
			if (false) {
			    // 重复声明一次函数f
			    function f() { console.log('I am inside!'); }
			}
			f();
		}());
	</script>
</html>